#!/bin/sh
LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH

# Removing Old executables
echo make: removing old stuffs
rm ./dilca-manager 2> /dev/null
echo make: Done.

# Command for creating the executable 
echo "make: creating dilca-manager ..."
gcc -pthread -I/usr/local/include/vortex -I/usr/local/include/axl -L/usr/local/lib -lvortex -lssl -lcrypto -lgsasl -lpthread -laxl -lm -I/usr/local/include/libxml2 -L/usr/local/lib -lxml2 -lz -lm dilca-manager.c -o dilca-manager -I/usr/local/include/libidxp -L. -lidxp 2> build 
echo make: Done.
exit 0
